package com.abc.service;

import com.abc.bean.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author xiangyu
 * @Date 2021/7/22 18:03
 * @Version 1.0
 */
@FeignClient(value = "msc-stock",
         fallback = PurchaseFallback.class
        )
public interface StockFeignService {

    @PostMapping("/stock/add")
    boolean saveStock(@RequestBody Stock stock);
}
